// 引入地址、端口、一级路由
import {
    address,
    pathApi
} from "@/api/path";
// 引入request文件
import request from '../utils/request';
// 查询对接系统配置
export const queryBMAbuttingSysCfg = condiiton => {
    return request({
        url: `${address}${pathApi}/sysConfig/findSysConfig`,
        method: 'post',
        // 声明发送formData数据的头部，默认是发送json
        // headers: {
        //     'Content-Type': 'application/x-www-form-urlencoded'
        // },
        headers: {
            "Content-Type": "application/json"
        },
        params: condiiton,
    });
};
// 保存对接系统配置
export const updateBMAbuttingSysCfg = condiiton => {
    return request({
        url: `${address}${pathApi}/sysConfig/addOrSetSysConfig`,
        method: 'post',
        // 声明发送formData数据的头部，默认是发送json
        // headers: {
        //     'Content-Type': 'application/x-www-form-urlencoded'
        // },
        data: condiiton,
    });
};